package org.ricks.bootstrap;

import org.ricks.boot.Scan;
import org.ricks.boot.ServerBootstrap;
import org.ricks.ioc.RicksContext;
//import org.ricks.net.NetContext;
//import org.ricks.orm.OrmContext;

import java.util.Set;

@Scan({"org.ricks.tcp"})
public class GameServerBootstrap implements ServerBootstrap {
    @Override
    public void start() {
//        //扫描包
        //初始化IOC容器
        RicksContext.me().init();
        //初始化ORM
//        OrmContext.me().init();
        //初始化net
//        NetContext.me().init();
    }

    @Override
    public void stop() {
        RicksContext.me().stop();
//        OrmContext.me().shutdown();
    }
}
